package com.small.admin.service;

import com.small.admin.dto.AdminDelete;
import com.small.admin.dto.AdminModifyPwd;
import com.small.admin.dto.AdminPage;
import com.small.admin.dto.AdminStore;
import com.small.common.base.service.BaseService;
import com.small.admin.entity.Admin;
import com.small.admin.mapper.AdminMapper;
import com.small.common.msg.Msg;
import com.small.common.msg.MsgPage;

/**
 * 作者: fenny
 * 邮箱: 893146555@qq.com
 * 时间: 2017-10-17 15:28:29
 * 描述: 管理员信息 接口
 */
public interface AdminService extends BaseService<AdminMapper, Admin> {

    Admin selectByAccount(String account);

    Msg modifyPwd(AdminModifyPwd adminModifyPwd, long adminId);

    int add(AdminStore admin);

    void update(AdminStore admin);

    MsgPage<Admin> selectByPage(AdminPage adminPage);

    void deletes(AdminDelete adminDelete);

}